import request from '@/utils/request'

// 查询设备分类列表
export function listMachineCategory(query) {
  return request({
    url: '/dategory/machineCategory/list',
    method: 'get',
    params: query
  })
}

// 查询设备分类详细
export function getMachineCategory(id) {
  return request({
    url: '/dategory/machineCategory/' + id,
    method: 'get'
  })
}

// 新增设备分类
export function addMachineCategory(data) {
  return request({
    url: '/dategory/machineCategory',
    method: 'post',
    data: data
  })
}

// 修改设备分类
export function updateMachineCategory(data) {
  return request({
    url: '/dategory/machineCategory',
    method: 'put',
    data: data
  })
}

// 删除设备分类
export function delMachineCategory(id) {
  return request({
    url: '/dategory/machineCategory/' + id,
    method: 'delete'
  })
}
